package com.xiaoq.matrix.service;

import java.util.List;

import com.xiaoq.matrix.entity.ContentEntity;
import com.xiaoq.matrix.vo.ContentAndElementVo;
import com.xiaoq.matrix.vo.PublishTaskVo;
import com.xiaoq.vo.PagingVo;

public interface IContentService {
	public List<ContentEntity> findContentElementList(ContentAndElementVo contentAndElementVo,
			PagingVo pv);
	
	public boolean addContent(ContentEntity content);
	
	public ContentEntity findContent(String id);
	
	public boolean delContent(String id);
	
	public boolean updateContent(ContentEntity content);
	
	public List<ContentEntity> findContentListByCity(String city,String district,PagingVo pv);
	
	public void sendPublishMessage(String msg);
	
	public void doPublish(PublishTaskVo task);
	
	public void updateContentStatus(String id,String pubStatus);
	
	/**
	 * 根据头条Id获取头条详情
	 * @param id
	 * @return
	 */
	public ContentEntity findCotentDetail(String id);

	/**
	 * 从 ES中查询 ContentEntity
	 * @param shopId 店ID
	 * @param title 标题
	 * @param pv 分页参数
	 * @return
	 */
	List<ContentEntity> findContentListFromEs(String shopId, String title, PagingVo pv);

}
